<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vx-ztt</title>
</head>
<style>
    *{
        box-sizing: border-box;
    }
    a{
        display: inline-block;
        margin: 10px 10px 10px 0px;
        border: 2px solid rgba(0,0,0,0.5);
        padding: 10px 20px;
        color: rgba(0,0,0,0.8);
        text-decoration: none;
        font-weight: bold;
    }
    textarea{
        padding: 10px;
        outline-color: dodgerblue;
        display: block;
    }
    button{
        margin-top: 10px;
        width: 100px;
        height: 30px;
        cursor: pointer;
    }
    input[type="text"]{
        width: 300px;
        height: 30px;
    }
</style>
<body>

    <a href="/vx/api/init" target="_self">初始化文件</a>
    <a href="/vx/api/getToken" target="_self">手动获取一次TOKEN</a>
    <a href="/vx/api/resetTimer" target="_self">开始推送</a>
    <a href="/vx/api/resetTimer" target="_self">重置定时器</a>
    <a href="/vx/api/stopTimer" target="_self">停止定时器</a>
    <a href="/var" target="_blank" style="border: 2px solid forestgreen;color: forestgreen;">系统自带特殊变量</a>
    <a href="http://cron.ciding.cc/" target="_blank" style="border: 2px solid blue;color: blue;">cron表达式生成器</a>
    <a href="https://www.json.cn/" target="_blank" style="border: 2px solid blue;color: blue;">JSON解析校验工具</a>
    <a href="https://www.sojson.com/web/panel.html" target="_blank" style="border: 2px solid red;color: red;">颜色选择器</a>
    <a href="https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Global_Return_Code.html" target="_blank" style="border: 2px solid coral;color: coral;">微信返回状态码解释</a>

    <table border="1" bordercolor="#f2e8e2" cellspacing="2px" cellpadding="10px" width="100%">
        <tr style="background-color: #f2e8e2;">
            <th>公众信息配置（vx-config.json）</th>
            <th>消息配置（message.json）</th>
            <th>TOKEN信息配置<br/>系统自动获取，一般情况无需配置（access-token.json）</th>
        </tr>
        <tr>
            <td width="400px">
                <form action="/vx/api/vxConfig" method="post">
                    <textarea name="content" style="width: 100%;min-height: 500px;" placeholder="公众信息配置" wrap="off">[[ ${vxConfig} ]]</textarea>
                    <button type="submit">提交</button>
                </form>
            </td>
            <td>
                <form action="/vx/api/messageConfig" method="post">
                    <textarea name="content" style="width: 100%;min-height: 500px;" placeholder="消息配置" wrap="off">[[ ${messageConfig} ]]</textarea>
                    <button type="submit">提交</button>
                </form>
            </td>
            <td width="300px">
                <form action="/vx/api/tokenConfig" method="post">
                    <textarea name="content" style="width: 100%;min-height: 500px;" placeholder="TOKEN信息配置" >[[ ${tokenConfig} ]]</textarea>
                    <button type="submit">提交</button>
                </form>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <b>手动测试消息发送：</b>
                <form action="/vx/api/testSendTemplateMessage" method="post">
                    <label>消息模板ID：<input type="text" name="templateId" /></label>
                    &nbsp;&nbsp;&nbsp;
                    <label>接收人openID：<input type="text" name="openID" /></label>
                    &nbsp;&nbsp;&nbsp;
                    <button type="submit">提交</button>
                </form>
            </td>
        </tr>
    </table>

    <p style="color: rgba(0,0,0,0.6)">版权所属©ztt 该项目完全开源，可随意进行二次开发并使用</p>
</body>
</html>